package com.qdlc.p2p.biz.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qdlc.p2p.biz.service.NewActivityAwardLogService;
import com.qdlc.p2p.dal.common.model.jpa.PageDataList;
import com.qdlc.p2p.dal.dao.NewActivityAwardLogDao;
import com.qdlc.p2p.dal.dto.NewActivityAwardLog;
import com.qdlc.p2p.dal.model.NewActivityAwardLogModel;

/**
 * Created by liaoxiangkai on 2015/11/12.
 */
@Service("newActivityAwardLogService")
public class NewActivityAwardLogServiceImpl implements NewActivityAwardLogService {

    @Resource
    NewActivityAwardLogDao newActivityAwardLogDao;

    /**
     * 记录一条日志
     * @param newActivityAwardLog
     */
    @Override
    public void record(NewActivityAwardLog newActivityAwardLog) {
        newActivityAwardLogDao.save(newActivityAwardLog);
    }

    /**
     * 查询日志列表
     * @param model
     * @return
     */
    @Override
    public PageDataList<NewActivityAwardLogModel> list(NewActivityAwardLogModel model) {
        return newActivityAwardLogDao.list(model);
    }
}
